package com.streamhub.client;

import com.google.gwt.core.client.JavaScriptObject;

interface StreamHubBridge {
	void createStreamHub();
	void exportStaticOnUpdateMethod();
	void connectHub(String url);
	void connectHub(JavaScriptObject config);
	void disconnectHub();
	void subscribe(String topic);
	void subscribe(JavaScriptObject topicsArray);
	void unsubscribeHub(String topic);
	void unsubscribeHub(JavaScriptObject topicsArray);
	void publish(String topic, String json);
}
